package cn.edu.bzu.group4.stockplus.dao;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import org.springframework.stereotype.Repository;

import cn.edu.bzu.group4.stockplus.utils.JuheNews;

@Repository
public class HibernateNewsDao extends HibernateDao implements NewsDao{
	
	
	@Override
	public JSONArray getNews() {
		System.out.println(JuheNews.searchNews("股市"));
		
		if(JuheNews.searchNews("股市").equals("213802:查询不到相关的新闻")){
			return null;
		}else{
			return (JSONArray) JuheNews.searchNews("股市");
		}
		 
	}

}
